﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="BankSort.aspx.cs" Inherits="Mang24k99.Web.OrgList.BankSort" Title="银行机构排序" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <script type="text/javascript" language="JavaScript">
          function verify(obj)
          {
              if(!(obj.keyCode>=48 && obj.keyCode<=57))
              {
                  obj.returnValue = false;
              } 
          }
          function valueValidate(obj)
          {
              var patrn=/^[0-9]{1,20}$/; 
              if (obj.value==""||obj.value==0)
              {
                    alert("不能为0或空!");
                    return false;
              }
              if(!patrn.exec(obj.value))
              {
                    alert("排序号格式不对，请输入数字！");
                    return false;
              }
              return true;
          }
      </script>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" background="../Images/bg1.jpg">
      <tr>
        <td align="right"><a href="GoldCorpAdd.aspx" class="col">金商</a></td>
        <td align="right"><a href="BankAdd.aspx" class="col_on">银行</a></td>
        <td align="right"><a href="DeptAdd.aspx" class="col">科视</a></td>
        <td>&nbsp; &nbsp; &nbsp; &nbsp; </td>
      </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" style="height" background="../Images/bg1.jpg">
      <tr>
        <td  align="right">&nbsp;</td>
        <td align="right"><a class="col" href="BankAdd.aspx">新增银行机构</a></td>
        <td align="right">&nbsp;</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        <td><a class="col_on" href="BankSort.aspx">银行机构排序</a></td>
      </tr>
    </table>
    
<div >
        <asp:GridView ID="grdList" runat="server" Width="100%" AutoGenerateColumns="False" >
            <HeaderStyle CssClass="tb_title2" />
            <RowStyle CssClass="tb_txt2" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="OrgnizeNO" HeaderText="机构编号" />
                <asp:BoundField DataField="OrgnizeName" HeaderText="机构名称" />
                <asp:TemplateField HeaderText="排序">
                    <ItemTemplate>
                        <input type="text" id="txtsort" runat="server" onpaste = "return false" autocomplete="off"  
                            onkeypress="verify(event)" onblur="return valueValidate(this)" maxlength="3" value='<%#Bind("LevelOrder") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="InputTime" HeaderText="创建日期" />
            </Columns>
        </asp:GridView>
    </div>

<table border="0" cellpadding="0" cellspacing="0" width="50%" align="center">
  <tr>
    <td align="center">
        <asp:Button ID="btnOK" CssClass="form_btn" runat="server" Text="确定" 
            onclick="btnOK_Click" /></td>
    <td align="center">&nbsp;</td>
    <td align="center">
        <asp:Button ID="btnCancel"  CssClass="form_btn" runat="server" Text="取消" 
            OnClientClick="return confirm('未保存的操作将丢失，确定取消吗？')" onclick="btnCancel_Click" /></td>
  </tr>
</table>  
</asp:Content>
